import request from '@/utils/request'

// 查询安全检查指标项列表
export function listLabsafetyCheckIndexItem(query) {
  return request({
    url: '/labsafety/labsafetyCheckIndexItem/list',
    method: 'get',
    params: query
  })
}
// 查询部门列表（排除节点）
export function listExcludeChild(query) {
  return request({
    url: '/labsafety/labsafetyCheckIndexItem/list/exclude' ,
    method: 'get',
    params: query
  })
}
// 查询安全检查指标项详细
export function getLabsafetyCheckIndexItem(id) {
  return request({
    url: '/labsafety/labsafetyCheckIndexItem/' + id,
    method: 'get'
  })
}

// 新增安全检查指标项
export function addLabsafetyCheckIndexItem(data) {
  return request({
    url: '/labsafety/labsafetyCheckIndexItem',
    method: 'post',
    data: data
  })
}

// 修改安全检查指标项
export function updateLabsafetyCheckIndexItem(data) {
  return request({
    url: '/labsafety/labsafetyCheckIndexItem',
    method: 'put',
    data: data
  })
}

// 删除安全检查指标项
export function delLabsafetyCheckIndexItem(id) {
  return request({
    url: '/labsafety/labsafetyCheckIndexItem/' + id,
    method: 'delete'
  })
}

// 导出安全检查指标项
export function exportLabsafetyCheckIndexItem(query) {
  return request({
    url: '/labsafety/labsafetyCheckIndexItem/export',
    method: 'get',
    params: query
  })
}